package com.wulis.provider.authority.model.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author WuliBao
 * @date 2020-04-24
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "修改账号BO")
public class UpdateAccountBo {
    
    @ApiModelProperty("账号ID")
    private Long id;
    
    @ApiModelProperty(value = "账号")
    private String account;
    
    @ApiModelProperty(value = "密码")
    private String password;
    
    @ApiModelProperty(value = "启用状态：0关闭 1启用")
    private Integer enable;
    
    public boolean isEmpty() {
        return this.account == null && this.password == null && this.enable == null;
    }
}
